﻿<Window x:Class="SGT.Views.NuevoProveedorView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        DataContext="{Binding ABMProvedores, Source={StaticResource Locator}}" d:DesignHeight="303" d:DesignWidth="549" SizeToContent="WidthAndHeight">

    <Grid >
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="122*" />
                <ColumnDefinition Width="407*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="36*" />
                <RowDefinition Height="37*" />
                <RowDefinition Height="36*" />
                <RowDefinition Height="36*" />
                <RowDefinition Height="36*" />
                
            </Grid.RowDefinitions>

            <Label Content="Razón social:" Name="lblRazon" />
            <Label Content="Dirección:" Grid.Row="1" Name="lblDireccion" />
            <Label Content="Contacto:" Grid.Row="2" Name="lblContacto" />
            <Label Content="Teléfono:" Grid.Row="3" Name="lblTelefono" />
            <TextBox Grid.Column="1" Name="txtRazon" Text="{Binding Path=ProveedorNuevo.Nombre}" Margin="8,6,191,14" />
            <TextBox Grid.Column="1" Grid.Row="1" Name="txtDireccion" Text="{Binding Path=ProveedorNuevo.Direccion}" Margin="8,2,191,21" />
            <TextBox Grid.Column="1" Grid.Row="2" Name="txtContacto" Text="{Binding Path=ProveedorNuevo.Contacto}" Margin="8,0,191,18" />
            <TextBox Grid.Column="1" Grid.Row="3" Name="txtTelefono" Text="{Binding Path=ProveedorNuevo.Telefono}" Margin="8,0,191,20" />
            <Button Content="Aceptar" Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" Margin="140,13,0,0" Name="button1" VerticalAlignment="Top" Width="75" Command="{Binding Path=NuevoProveedor}"/>
        </Grid>
    </Grid>
</Window>
